package com.scanner;

import java.util.Scanner;

public class scanner3 {
    public static void main(String[] args) {
        //从键盘接收数据
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数据：");

        String s = scanner.nextLine();
        System.out.println("输出的内容为："+s);

        scanner.close();
    }
}
